package com.changgou.user.feign;

import com.changgou.entity.Result;
import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用 userFeign ，用户 用户信息的查询，用于登录时 密码相关校验
 * @author 20201115
 */
@FeignClient(name = "user")
public interface UserFeign {

    @GetMapping("/user/findUserInfo/{username}")
    public Result<User> findUserInfo(@PathVariable("username") String username);
}
